Ban System

Block unwanted visitors


Ban System will help you to block the access to your website for specific IPs, Countries, IP Ranges, Internet Service Providers (ISP), Browsers, Operating Systems (OS) and Referrers. Banned IPs can be redirected to an optional page or website.

Ban System will help you to block the access to your website for specific IPs, Countries, IP Ranges, Internet Service Providers (ISP), Browsers, Operating Systems (OS) and Referrers. Banned IPs can be redirected to an optional page or website.

Ban System comes with powerful admin panel from which you can view and manage all bans and it is also integrated with tools like IP Lookup tool that is integrated with Blacklist Checker. The Admin Panel has many features and settings.

and many more...
  1. Create a subfolder named “bansystem” under your website’s root directory (www / public_html) via FTP or File Manager
  2. Upload the files from the "Source" folder of the script into the newly created subdirectory
  3. Create a MySQL database (Your hosting provider can assist)
  4. Visit your website where you uploaded the files (For example: yourwebsite.com/bansystem)
  5. The Installation Wizard will open automatically, just follow the steps
  6. Copy the Integration Code that you will see at the end of the Installation Wizard
  7. Put the copied Integration Code in the top (or bottom) part of one main .php file of your website
    ( (Examples: index.php file; database config (connection) file; functions file; header file; core file that is included in all other .php files)

Integration code: include "bansystem/ban-system.php";



Note: If you are updating the script replace all its files with the updated. Delete the config.php file of Ban System and follow the Installation Steps. To backup your data export all Ban System related database tables.

Update instructions for v2.0 => Run these SQL queries in PHPMyAdmin:
ALTER TABLE `bansystem_bans` CHANGE `ip` `ip` CHAR(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `bansystem_bans-ranges` CHANGE `ip_range` `ip_range` CHAR(19) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;
ALTER TABLE `bansystem_ip-whitelist` CHANGE `ip` `ip` CHAR(45) CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci NOT NULL;

Used resources: